package com.sanben.demand.data.vo;

import com.sanben.demand.entity.CommentReply;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author cyh
 * @description: 评论表 Vo
 * @date: 2020-08-11
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "CommentVo对象", description = "评论表")
public class CommentVo {

    @ApiModelProperty(value = "主键")
    private Integer id;

    @ApiModelProperty(value = "需求id")
    private Integer demandId;

    @ApiModelProperty(value = "用户Id(评论者Id)")
    private Integer userId;

    @ApiModelProperty(value = "用户头像")
    private String userPortrait;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "点赞数")
    private Integer likeCount;

    @ApiModelProperty(value = "评论时间")
    private LocalDateTime createTime;

    @ApiModelProperty("评论回复列表")
    private List<CommentReply> commentReplyList;
}
